# Add subdirectory for each linear systems solver

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# Direct solver
add_subdirectory(direct)

# Add linsys handler if not embedded
set(linsys_lib_handler
    ${CMAKE_CURRENT_SOURCE_DIR}/lib_handler.c
    ${CMAKE_CURRENT_SOURCE_DIR}/lib_handler.h)

# Combine solvers
# Add library handler if desktop version
set(linsys_solvers
    ${direct_linsys_solvers}
    ${linsys_lib_handler}
    PARENT_SCOPE)

# Combine solvers external libraries
set(linsys_solvers_includes
    ${direct_linsys_solvers_includes}
    PARENT_SCOPE)